package com.atguigu.feign;

import com.atguigu.domain.User;
import com.atguigu.feign.fallback.UserClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 琉
 * @create 2021-08-12 15:15
 */
@FeignClient(value = "user-provider",fallback = UserClientFallback.class)
public interface UserClient {

    @RequestMapping(value = "/user/find/{id}")
    User findById(@PathVariable(value = "id")Integer id);

}
